<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtlRegistreren.ascx.cs" Inherits="de_kleintjesmarkt.CtlRegistreren" %>
<div class="wgtRegister">
    <script language="javascript" type="text/javascript" src="js/md5.js"></script>
    <script language="javascript" type="text/javascript" src="js/register.js"></script>
    <h2>Registreren</h2>
    <div>
        <p>
            <span class="formField">E-mailadres</span>
            <span class="formValidate">
                <asp:RequiredFieldValidator ID="vldTxtEmail1" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="E-mailadres">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="vldTxtEmail2" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="E-mailadres" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </span>
            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
        </p>
        <p>
            <span class="formField">Wachtwoord (minimaal 6 tekens)</span>
            <asp:RequiredFieldValidator ID="vldWachtwoord" runat="server" ControlToValidate="txtWachtwoord"
                ErrorMessage="Wachtwoord">*</asp:RequiredFieldValidator><span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtWachtwoord" runat="server" TextMode="Password"></asp:TextBox>
            </p>
        <p>
            <span class="formField">Bevestig wachtwoord</span>
            <span class="formValidate">
                <asp:CustomValidator ID="vldTxtPassword1" runat="server" ClientValidationFunction="validatePasswords"
                    ControlToValidate="txtBevestigWachtwoord" ErrorMessage="De door u ingevulde wachtwoord-combinatie is onjuist."
                    ValidateEmptyText="True" OnServerValidate="vldTxtPassword1_ServerValidate">*</asp:CustomValidator>
            </span>
            <asp:TextBox ID="txtBevestigWachtwoord" runat="server" TextMode="Password"></asp:TextBox>
        </p>
        <p>
            <span class="formField">Abonneenummer</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtAbonneeNummer" runat="server"></asp:TextBox>
        </p>
        <p>
            <span class="formField">Voorletters + voornaam</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtVoorletters" runat="server" class="small"></asp:TextBox>
            <asp:TextBox ID="txtVoornaam" runat="server" class="small"></asp:TextBox>&nbsp;
        </p>
        <p>
            <span class="formField">Naam</span>
            <asp:TextBox ID="txtNaam" runat="server"  class="medium"></asp:TextBox></p>
        <p>
            <span class="formField">Postcode</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtPostcodeNummers" runat="server" MaxLength="4" class="extrasmall"></asp:TextBox>
            <asp:TextBox ID="txtPostcodeLetters" runat="server" MaxLength="2" class="small"></asp:TextBox>
        </p>
        <p>
            <span class="formField">Huisnummer + toevoeging</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtHuisnummer" runat="server" class="small"></asp:TextBox>
            <asp:TextBox ID="txtHuisnummerToevoeging" runat="server" class="extrasmall"></asp:TextBox>
        </p>
        <p>
            <span class="formField">Straatnaam</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtStraatnaam" runat="server"></asp:TextBox>
            &nbsp;
        </p>
        <p>
            <span class="formField">Woonplaats</span>
            <span class="formValidate">&nbsp;</span>
            <asp:TextBox ID="txtWoonplaats" runat="server"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="txtErrors" runat="server" ForeColor="Red"></asp:Label>
            <asp:ValidationSummary ID="vldSummary" runat="server" DisplayMode="List" HeaderText="De volgende verplichte velden zijn niet ingevuld:" />
            <asp:HiddenField ID="hfIsHashed" runat="server" EnableViewState="False" Value="0" />
            <input id="btTerug" type="button" value="Terug" onclick="javascript:history.back(1);"/>&nbsp;
            <asp:Button ID="btRegistreer" runat="server" CssClass="button" Text="Registreer" OnClick="btRegistreer_Click" />&nbsp;
        </p>
    </div>
</div>